const TokenKey = 'App-Token'
const UserInfo = 'UserInfo'
const Routers = 'Routers'
const LoginPeople = 'LoginPeople'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}

export function getUser(){
	return uni.getStorageSync(UserInfo)
}

export function setUser(user){
	return uni.setStorageSync(UserInfo,user)
}

export function removeUser(){
	return uni.removeStorageSync(UserInfo)
}

export function getRouters(){
	return uni.getStorageSync(Routers)
}

export function setRouters(routers){
	return uni.setStorageSync(Routers,routers)
}

export function removeRouters(){
	return uni.removeStorageSync(Routers)
}

export function getLoginPeople(){
	return uni.getStorageSync(LoginPeople)
}

export function setLoginPeople(info){
	return uni.setStorageSync(LoginPeople,info)
}

